package com.zhny.aiot.louverbox.co2.plugin.model;

import com.zhny.aiot.plugin.ActionValue;
import com.zhny.aiot.plugin.PropertyValue;
import com.zhny.aiot.plugin.model.*;
import lombok.Data;

@Data
public class LouverBoxStoreEntry extends StoreEntity {
    @PropertyValue(alias = "温度",description = "环境温度",unit = "°C",icon=IconConstract.Temperature,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private double temperature;
    @PropertyValue(alias = "湿度",description = "环境湿度",unit = "%RH",icon=IconConstract.Humidity,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private double humidity;
    @PropertyValue(alias = "光照",description = "光照强度",unit = "Lux",icon=IconConstract.Illumination,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private int illumination;
    @PropertyValue(alias = "噪声",description = "环境噪声",unit = "DB",icon=IconConstract.Noise,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private double noise;

    @PropertyValue(alias = "CO2",description = "二氧化碳",unit = "ppm",icon=IconConstract.Co2,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private int co2;
    @PropertyValue(alias = "大气压强",description = "大气压强",unit = "mpa",icon=IconConstract.AtmosphericPressure,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private double atmosphericPressure;
}
